import request from '@renderer/server/index'

// 用户注册接口
export const registerApi = (data) => {
  return request.post({
    url: '/reg',
    data
  })
}

// 用户登录
export const loginApi = (data) => {
  return request.post({
    url: '/login',
    data
  })
}

// 修改用户信息
export interface IUserInfo {
  username: string
  area: string
  email: string
  sign: string
  avatar: string
}
export const updateUserInfoApi = (data: IUserInfo) => {
  return request.post({
    url: '/editUserInfo',
    data
  })
}
